<form action="index.php?act=cate&op=cate_add" method="post">
<table>
    <tr><td>请选择上级分类：</td><td>
            <select name="p_id">
                <option value="0">顶级分类</option>
                <?php foreach($cate_list as $cate_row){?>
                    <option value="<?php echo $cate_row['cate_id']?>"><?php echo str_repeat('&nbsp;&nbsp;',$cate_row['level']).$cate_row['cate_name']?></option>
                <?php }?>
            </select>
        </td></tr>
    <tr><td>分类名称：</td><td><input type="text" name="cate_name" /></td></tr>
    <tr><td><input type="submit" name="cate_submit" value="添加" /></td></tr>
</table>
</form>